package cn.edu.neu.softlab633.influencemaximization.sy.bean.CELF;

/**
 * Created by Jason on 2017/5/16.
 */
public class OriginalCELFQueueEle implements Comparable<OriginalCELFQueueEle> {

    private int id;
    private int influenceSpread;
    private int round;

    public OriginalCELFQueueEle(int id, int influenceSpread, int round) {
        this.id = id;
        this.influenceSpread = influenceSpread;
        this.round = round;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setInfluenceSpread(int influenceSpread) {
        this.influenceSpread = influenceSpread;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public int getId() {
        return id;
    }

    public int getInfluenceSpread() {
        return influenceSpread;
    }

    public int getRound() {
        return round;
    }

    public OriginalCELFQueueEle() {
    }

    @Override
    public int compareTo(OriginalCELFQueueEle o) {
        if (this.getId() != o.getId()) {
            if (this.getInfluenceSpread() > o.getInfluenceSpread()) {
                return -1;
            }
            return 1;
        }
        return 0;
    }
}
